@import "../../../styles/base";

.MemberList {
  background: url("./../images/m-list-header.png") top center / 100% no-repeat, linear-gradient(0deg, #FFAAF6 0%, #FFDEF5 100%);
  position: relative;

  .total {
    font-size: tovw(12, 3.6);
    color: #FFFFFF;
    letter-spacing: 0;
    line-height: tovw(17, 3.6);
    font-weight: 400;
    padding: tovw(20, 3.6) tovw(16, 3.6) tovw(16, 3.6);
  }

  .info-btn {
    width: tovw(40, 3.6);
    height: tovw(40, 3.6);
    background: url("./../images/info.png") center center / tovw(32) no-repeat;
    position: absolute;
    right: tovw(10, 3.6);
    top: tovw(10, 3.6);
  }

  .member-list {
    background-color: white;
    border-radius: tovw(10, 3.6) tovw(10, 3.6) 0 0;
    height: calc(100vh - #{tovw(130, 3.6)});
    overflow-y: auto;
  }

  .member-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: tovw(10, 3.6) tovw(16, 3.6);

    .rank {
      width: tovw(30, 3.6);
      font-size: tovw(16, 3.6);
      color: #A20090;
      letter-spacing: 0;
      text-align: center;
      font-weight: 500;
    }

    .avatar {
      flex: 0 0 tovw(44, 3.6);
      width: tovw(44, 3.6);
      height: tovw(44, 3.6);
      border-radius: 50%;
      overflow: hidden;
      margin: 0 tovw(10, 3.6);

      img {
        width: 100%;
        height: 100%;
      }
    }

    .name {
      width: tovw(120, 3.6);
      display: inline-block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: tovw(18, 3.6);
      color: #000000;
      letter-spacing: 0;
      font-weight: 500;
    }

    .value {
      font-size: tovw(14, 3.6);
      color: rgba(0, 0, 0, 0.70);
      letter-spacing: 0;
      font-weight: 400;
    }

    .level-text {
      justify-self: flex-end;
    }

    .level-wrap {
      display: flex;
      align-items: center;
      justify-content: flex-end;

      .level {
        font-size: tovw(11, 3.6);
        color: #E10073;
        letter-spacing: 0;
        text-align: center;
        font-weight: 700;
        width: tovw(26, 3.6);
        height: tovw(30, 3.6);
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1;
        background: left center / 100% no-repeat;
        right: tovw(-20, 3.6);

        &.level-1, &.level-0 {
          background-image: url("./../images/lv-1.png");
        }

        &.level-2 {
          background-image: url("./../images/lv-2.png");
        }

        &.level-3 {
          background-image: url("./../images/lv-3.png");
        }
        &.level-4 {
          background-image: url("./../images/lv-4.png");
        }
        &.level-5 {
          background-image: url("./../images/lv-5.png");
        }

      }

      .text {
        font-size: tovw(12.5, 3.6);
        color: #FFFFFF;
        letter-spacing: 0;
        font-weight: 700;
        background-image: linear-gradient(90deg, #FF8888 8%, #FE619F 98%);
        border-radius: 0 tovw(10, 3.6) tovw(10, 3.6) 0;
        padding: 0 tovw(4, 3.6) 0 tovw(20, 3.6);
        position: relative;
        z-index: 0;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }

    .info {
      min-width: tovw(130, 3.6);
      white-space: nowrap;
      font-size: tovw(11, 3.6);
      color: rgba(0, 0, 0, 0.70);
      letter-spacing: 0;
      text-align: right;
      font-weight: 400;
    }
  }

  .footer {
    background: linear-gradient(0deg, #FFAAF6 0%, #FFDEF5 100%);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    border-radius: tovw(10, 3.6) tovw(10, 3.6) 0 0;
  }

  .join-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 tovw(16, 3.6);
    height: tovw(76, 3.6);
  }

  .join-text {
    font-size: tovw(14, 3.6);
    color: rgba(0,0,0,0.70);
    letter-spacing: 0;
    font-weight: 500;
  }

  .join-btn {
    width: tovw(88, 3.6);
    height: tovw(30, 3.6);
    background: #FF69B3;
    border-radius: tovw(22, 3.6);
    font-size: tovw(16, 3.6);
    color: #FFFFFF;
    letter-spacing: 0;
    text-align: center;
    font-weight: 500;
  }

  .info-modal {
    .modal-content {
      .modal-body {
        width: tovw(280, 3.6);
        height: tovw(252, 3.6);
        background: linear-gradient(180deg, #FFFFFF 0%, #FFF5FD 99%);
        border-radius: tovw(9, 3.6);
        padding: tovw(30, 3.6);
      }

      h3 {
        text-align: center;
        font-size: tovw(18, 3.6);
        color: #000000;
        letter-spacing: 0;
        font-weight: 500;
        padding-bottom: tovw(10, 3.6);
      }

      p {
        font-size: tovw(14, 3.6);
        color: #929292;
        letter-spacing: 0;
        text-align: justify;
        line-height: tovw(22, 3.6);
        font-weight: 400;
      }
    }
  }
}
